package com.neusoft.chenhanhua.d0912;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Checkerboard extends JFrame {
	public static void main(String[] args) {
		Checkerboard jf = new Checkerboard();
		//设置窗口的大小
		jf.setSize(400, 400);
		//设置标题
		jf.setTitle("东软中国象棋");
		//关闭时同时关闭虚拟机
		jf.setDefaultCloseOperation(EXIT_ON_CLOSE);
		GamePanel p = new GamePanel();
		//添加窗口中
		jf.add(p);
		
		//显示窗口，建议放在最后一行
		jf.setVisible(true);
	}
	
}
